<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE HTML>
<html>
  <head>
    <%@include file="../common.jsp"%>
    <title>用户咨询</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">  
	<link rel="stylesheet" type="text/css" href="resources/css/common.css">
	<script type="text/javascript" src="resources/js/consult/consult.js"></script>  
  </head>
  <body>
   	<div class="content">
   		<h4>咨询管理</h4>
   		<hr/>
   		<!-- 查询面板 -->
   		<div class="panel panel-default">
		    <div class="panel-heading">
		      <h4 class="panel-title">
		        <a data-toggle="collapse" data-parent="#accordion" href="#collapseSearch">
		           	<i class="icon icon-search"></i> 查询过滤
		        </a>
		      </h4>
		    </div>
		    <div id="collapseSearch" class="panel-collapse collapse out">
		      <div class="panel-body">
				  <form id="form_search" class="form-horizontal">
			        <div class="form-group">
			          	<label class="col-md-1 control-label">用户id</label>
			          	<div class="col-md-4">
			             	<input type="text" name="userId" id="userId" class="form-control">
			          	</div>
			          	<label class="col-md-1 control-label">咨询标题</label>
			          	<div class="col-md-4">
			             	<input type="text" name="title" id="title" class="form-control">
			          	</div>
			        </div>
			        <div class="form-group">
			          <div class="col-md-offset-1 col-md-11">
			             <button id="btn_search" class="btn btn-default"><i class="icon icon-search"></i> 查询</button>
			             <button id="btn_reset" class="btn btn-default"><i class="icon icon-undo"></i> 重置</button>
			          </div>
			        </div>
			      </form>
		      </div>
		    </div>
		</div>
	    <!-- 工具栏 -->
   		<div class="tools">
   		<button id="btn_add" type="button" class="btn btn-danger" data-toggle="modal" data-target="#modal_add"><i class="icon icon-plus">添加咨询</button>
	    	<button id="btn_del" type="button" class="btn btn-danger"><i class="icon icon-minus"></i>  删除</button>
	    	
	    	<!-- 
 	    	<button id="btn_scan" type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal_scan"><i class="icon icon-search"></i> 详情</button>
	    	<div id="btn_status" class="btn-group" style="float: right;">
			  	<button type="button" class="btn btn-default active" id="0">正常</button>
			  	<button type="button" class="btn btn-danger" id="1">冻结</button>
			</div>
			-->
	    </div>
	    <!-- 列表 -->
	    <table id="tab_list" class="table table-hover table-striped mytable">
			<thead>
				<tr>
					<th style="width: 35px;"><input id="pkall" type='checkbox' class='checkbox'></th>
					<th style="width: 50px;">序号</th>
					<th>用户id </th>
					<th>咨询标题</th>
					<th>咨询内容</th>
					<th>咨询状态</th>
					<th>医生id</th>
				</tr>
			</thead>
			<tbody>
				
			</tbody>
	  	</table>
	  	<!-- 分页信息条 -->
	  	<div id="pagebar" class="pagebar">
		  	<ul class="pager">
		  		
			</ul>
			<p id="page_info" class="page_info">显示第<span>0</span>到第<span>0</span>条记录,共<span>0</span>条</p>
	  	</div>
	    </div>
	    <!-- 增加 -->
		<div class="modal fade bs-example-modal-lg" id="modal_add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		  <div class="modal-dialog modal-lg">
		    <div class="modal-content">
		      <div class="modal-header">
		       <!-- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
		        <h4 class="modal-title" id="myModalLabel">新增成本中心</h4>   -->
		      </div>
		      <div class="modal-body">
		         <form id="form_add" class="form-horizontal" role="form" action="consult/insert" method="post">
					 <div class="form-group">
					    <label class="col-sm-2 control-label required">用户id</label>
					    <div class="col-sm-4">
					      <input id="add_userId" name="userId" class="form-control" placeholder="请输入用户id" data-toggle="tooltip" data-placement="top" title="请输入用户的id">
					    </div>
					    <label class="col-sm-2 control-label required">咨询标题</label>
					    <div class="col-sm-4">
					      <input id="add_title" name="title" class="form-control" placeholder="请输入用户咨询的标题" data-toggle="tooltip" data-placement="top" title="请输入咨询的标题">
					    </div>
					 </div>
					 <div class="form-group">
					    <label class="col-sm-2 control-label required">咨询内容</label>
					    <div class="col-sm-4">
					       <textarea id="add_askContent" class="form-control" rows="3" name="askContent" placeholder="请输入咨询的内容"></textarea>
					    </div>
					 </div>
					 <div class="form-group">
					    <label class="col-sm-2 control-label">状态</label>
					    <div class="col-sm-4">
					       <textarea id="add_status" class="form-control" name="status" placeholder="咨询时的状态：0是未咨询，1是已咨询"></textarea>
					    </div>
					 </div>
					 <div class="form-group">
					    <label class="col-sm-2 control-label required">医生id</label>
					    <div class="col-sm-4">
					      <input id="add_docId" name="docId" class="form-control" placeholder="请输入医生的id" data-toggle="tooltip" data-placement="top" title="请输入医生的id">
					    </div>
					 </div>
					 <div class="form-group">
					    <label class="col-sm-2 control-label required">创建时间</label>
					    <div class="col-sm-4">
					      <input id="add_time" name="addTime" class="form-control" placeholder="请输入创建时间" data-toggle="tooltip" data-placement="top" title="请输入医生的id">
					    </div>
					 </div>
					 <div class="form-group">
					    <label class="col-sm-2 control-label required">患者姓名</label>
					    <div class="col-sm-4">
					      <input id="add_patientName" name="patientName" class="form-control" placeholder="请输入患者姓名" data-toggle="tooltip" data-placement="top" title="请输入医生的id">
					    </div>
					 </div>
					 <div class="form-group">
					    <label class="col-sm-2 control-label required">患者性别</label>
					    <div class="col-sm-4">
					      <input id="add_patientGender" name="patientGender" class="form-control" placeholder="请输入患者性别" data-toggle="tooltip" data-placement="top" title="请输入医生的id">
					    </div>
					 </div>
					 <div class="form-group">
					    <label class="col-sm-2 control-label required">患者年龄</label>
					    <div class="col-sm-4">
					      <input id="add_patientAge" name="patientAge" class="form-control" placeholder="请输入患者年龄" data-toggle="tooltip" data-placement="top" title="请输入医生的id">
					    </div>
					 </div>					 					 
				</form>
				<form id="form_add2" class="form-horizontal" action="common/upload" method="post" enctype="multipart/form-data">
						<div class="form-group">
							<label class="col-sm-2 control-label required">上传图片</label>
							<div class="col-sm-10">
								<input type="file" name="file" placeholder="请选择图片..." data-toggle="tooltip" data-placement="top" title="请上传图片文件">
							</div>
						</div>
						<div class="form-group" style="display:none;">
							<div class="col-sm-2"></div>
							<div class="col-sm-10">
								<a href="" target="_blank"> <img id="logo_scan" alt=""	src="" style="height: 150px;"> </a>
							</div>
						</div>
					</form>
		      </div>
		      <div class="modal-footer">
		          <button id="btn_confirm_add" type="button" class="btn btn-primary">确定</button>
		          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
		      </div>
		    </div>
	   </div>
	</div>
  </body>
</html>